class Solution(object):
    def numOfStrings(self, patterns, word):
        return sum([word.find(p) >= 0 for p in patterns])